package com.lx.dao;

import com.lx.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    //获取全部用户
    List<User> getAllUsers();

    //根据Id获取用户
    User getUserById(int id);

    //新增用户
    void addUser(User user);

    //修改用户
    void updateUser(User user);

    //根据Id删除用户
    void deleteUserById(int id);

    //将参数设为Map类型
    User getUserByMap(Map<String,Object> map);

    List<User> getUserByLikeName(String name);
}
